texture: Export gdk_texture_get_format()
authorBenjamin Otte <otte@redhat.com>
Tue, 14 Feb 2023 06:33:46 +0000 (07:33 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 14 Feb 2023 23:39:18 +0000 (00:39 +0100)
commitc9f54ca37105cfe248717a5b4122ec8fd8ebe598
treedb77353a452e28eba3673bd9640d1e30838c6cbc
parentce0123ea584dd6052331962182f4360cdccceb29
texture: Export gdk_texture_get_format()

The API docs outline why quite well.

This should make it possible to do saving of textures to image files
without any private API with the same featureset that GTK uses.

Also remove the gsktextureprivate.h include where
gdk_texture_get_format() was the only reason for it.
gdk/gdkgltexture.c
gdk/gdkpixbuf.c
gdk/gdktexture.c
gdk/gdktexture.h
gdk/gdktextureprivate.h
gdk/loaders/gdkpng.c
gdk/loaders/gdktiff.c
gsk/gl/gskgldriver.c